package com.dmai.capacity.platform.util;



/**
 * 字符串工具类
 *
 * @author ruoyi
 */
public class StringUtil extends org.apache.commons.lang3.StringUtils {


    public static String getNextSequence(String currSequence, int len) {
        if (currSequence == null) {
            currSequence = "0";
        }
        Integer curr = Integer.parseInt(currSequence);
        curr++;
        String currStr = curr.toString();
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < len - currStr.length(); i++) {
            result.append("0");
        }
        result.append(currStr);
        return result.toString();
    }
}
